<?php
$f = new CDateFormatter(Yii::app()->user->language);
$model->$name = $f->format("dd/MM/yyyy HH:mm:ss", $model->$name);

if (!$is_editor)
{
	echo "<div style='text-align:right;'>".$model->$name."</div>";
}else{
	$this->widget('application.extensions.datetimepicker.EJuiDateTimePicker', array (
		//'id'=>'param_value_'.$i,
		'model' => $model,
		'attribute' => "[".$model->index."]$name",
		// additional javascript options for the date picker plugin
		'options' => Constants::$JuiDateTimePickerOptions
	));
}
?>

